package com.hpu.parser;

import com.hpu.bean.Week;

import org.json.JSONArray;
import org.json.JSONException;

public class WeekParser {

	public Week parse(String parseString){
		JSONArray array;
		try {
			array = new JSONArray(parseString);
			return new Week(array.getString(2),array.getInt(0),array.getInt(1));
		} catch (JSONException e) {
			e.printStackTrace();
		}
		return null;
	}
}
